package com.hyts.dbutils.bean.jdbc;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

import javax.sql.DataSource;

/**
 * project-name:coffice-toolbox
 * package-name:com.hyts.dbopera.dbutils.bean
 * author:Libo/Alex
 * create-date:2019-06-23 21:01
 * copyright:libo-hyts-github
 * email:libo2dev@aliyun.com
 * description:此类主要用于: jdbc 数据连接池的基础对象
 */
@Setter
@Getter
@AllArgsConstructor
public class JdbcConnectionBean extends JdbcPooledBean {

    /**
     * jdbc url服务-连接字符串
     */
    private String url;

    /**
     * jdbc user用户名
     */
    private String user;

    /**
     * jdbc password密码
     */
    private String password;

    /**
     * jdbc driverclass驱动类
     */
    private String driverClass;

    /**
     * 构造器
     * @param dataSource
     */
    public JdbcConnectionBean(DataSource dataSource){
        this.setDataSource(dataSource);
    }

}
